package grpc_client

import (
	"longmen/server/config/global"
	"longmen/server/pkg/common/helper/const"
	pb "longmen/server/pkg/protobuf"
)

var GrpcTaskServer pb.TaskServerClient

func InitTaskGrpc(token *Token) {
	//腾讯IM
	tencentImConn := getClientConn(global.GetMicroserviceName(_const.GRPC_TASK_SERVER_NAME_KEY), token)
	GrpcTaskServer = pb.NewTaskServerClient(tencentImConn)
}
